home *** CD-ROM | disk | FTP | other *** search
- /*
- (C) 1995-96 AROS - The Amiga Replacement OS
- $Id: helloworld.c,v 1.2 1996/08/01 17:40:44 digulla Exp $
- $Log: helloworld.c,v $
- Revision 1.2 1996/08/01 17:40:44 digulla
- Added standard header for all files
-
- Desc:
- Lang:
- */
- #include <exec/libraries.h>
- #include <clib/exec_protos.h>
- #include <dos/dos.h>
- #include <clib/dos_protos.h>
-
- struct ExecBase *SysBase;
- struct DosLibrary *DOSBase;
-
- __AROS_LH0(LONG,entry,struct ExecBase *,sysbase,,)
- {
- __AROS_FUNC_INIT
-
- SysBase=sysbase;
- DOSBase=(struct DosLibrary *)OpenLibrary("dos.library",39);
- if(DOSBase!=NULL)
- {
- Write(Output(),"hello, world\n",13);
- CloseLibrary((struct Library *)DOSBase);
- }
- return 0;
- __AROS_FUNC_EXIT
- }
-